import request from '@/utils/request'

// 查询表具信息列表
export function listWaterMeter(query) {
  return request({
    url: '/installation/waterMeter/list',
    method: 'get',
    params: query
  })
}

// 查询表具信息详细
export function getWaterMeter(id) {
  return request({
    url: '/installation/waterMeter/' + id,
    method: 'get'
  })
}

// 新增表具信息
export function addWaterMeter(data) {
  return request({
    url: '/installation/waterMeter',
    method: 'post',
    data: data
  })
}

// 修改表具信息
export function updateWaterMeter(data) {
  return request({
    url: '/installation/waterMeter',
    method: 'put',
    data: data
  })
}

// 删除表具信息
export function delWaterMeter(id) {
  return request({
    url: '/installation/waterMeter/' + id,
    method: 'delete'
  })
}
